<?php  // pr($websiteSettings); ?><!DOCTYPE HTML>
<html class="no-js">
<head>
<!-- Basic Page Needs
  ================================================== -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $this->fetch('title'); ?></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
  ================================================== -->
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no">
<!-- CSS
  ================================================== -->
<?php  
// Ten color (1-10)
$theme_color_available	=	array(1,2,3,4,5,6,7,8,9,10);
if(isset($websiteSettings['theme_color']) and in_array($websiteSettings['theme_color'],$theme_color_available)) $theme_color	=	$websiteSettings['theme_color']; 
else $theme_color	=	1;
		echo $this->Html->css('property/bootstrap');
		echo $this->Html->css('property/style.css');
		echo $this->Html->css('property/plugins/prettyphoto/css/prettyPhoto');
		echo $this->Html->css('property/plugins/owl-carousel/css/owl.carousel');
		echo $this->Html->css('property/plugins/owl-carousel/css/owl.theme.css');
		echo $this->Html->css('property/colors/color'.$theme_color);

		echo $this->Html->css('cake.style');
		if($this->Session->check('Config.language_catalog')){
			$language_catalog	=	$this->Session->read('Config.language_catalog');
			if($language_catalog['direction']=='rtl'){
				echo $this->Html->css('property/rtl/bootstrap-rtl.min.css');
				echo $this->Html->css('property/rtl/rtl.css');
			}
		}

?>
<!--[if lte IE 9]> <?php  		echo $this->Html->css('property/ie');?><![endif]-->

<!-- SCRIPTS
  ================================================== -->
  <?php  		echo $this->Html->script('property/modernizr');?>
<!-- Modernizr -->
</head>
<?php 
$theme_size_available	=	array('boxed','full');
if(isset($websiteSettings['theme_size']) and in_array($websiteSettings['theme_size'],$theme_size_available)) $theme_size	=	$websiteSettings['theme_size']; 
else $theme_size	=	'full';

?>
<body class="home <?php echo $theme_size; ?>">
<!--[if lt IE 7]>
	<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
<div class="body">
  <!-- Start Site Header -->
  <header class="site-header">
    <div class="top-header hidden-xs">
      <div class="container">
        <div class="row">
          <div class="col-md-4 col-sm-6">
            <ul class="horiz-nav pull-left">
            <?php 
			
//			if($this->Session->check('Config.language'))
			if($this->Session->check('Auth.User')) { ?>
              <li class="dropdown"><a data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo __('Profile'); ?> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><?php echo $this->Html->link(__('My properties'),array('plugin'=>false,'controller'=>'properties','action'=>'my_properties')); ?></li>
                  <li><?php echo $this->Html->link(__('Add a property'),array('plugin'=>false,'controller'=>'properties','action'=>'add')); ?></li>
                  <li><?php echo $this->Html->link(__('My Profile'),array('plugin'=>false,'controller'=>'users','action'=>'edit_agent_profile')); ?></li>
                  <li><?php echo $this->Html->link(__('Log Out'),array('plugin'=>false,'controller'=>'users','action'=>'logout')); ?></li>
                </ul>
              </li>
            <?php } else { ?>
              <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'register')); ?>"><i class="fa fa-check-circle"></i> <?php echo __('Register'); ?></a></li>
              <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'login')); ?>"><i class="fa fa-envelope"></i> <?php echo __('Login'); ?></a></li>
            <?php } ?>
              </ul>
          </div>
          <div class="col-md-8 col-sm-6">
            <ul class="horiz-nav pull-right">
              <li class="dropdown"><a data-toggle="dropdown"><i class="fa fa-check-circle"></i>  <?php echo __('Goto') ?> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><a href="https://www.google.com">www.google.com</a></li>
                  <li><a href="https://www.facebook.com">www.facebook.com</a></li>
                </ul>
              </li>
              </ul>
            <ul class="horiz-nav pull-right">
			<?php foreach($availableLanguages as $key=>$value) {
                $link = $this->Html->Link(__($value), array('controller' => 'pages', 'action' => 'changeLanguage', $key));
                if($key != $language)
                echo $this->Html->Tag('li', $link, array('class' => $key == $language ? 'active' : ''));
            } ?>
             </ul>
            </div>
        </div>
      </div>
    </div>
    <div class="middle-header">
      <div class="container">
        <div class="row">
          <div class="col-md-4 col-sm-8 col-xs-8">
            <h1 class="logo"> <?php 
		echo  $this->Html->link($this->Html->image('/images/logo@2x.png'),array('controller' => 'Pages', 'action' => 'index'), array('title' => 'Logo','escape'=>false)); 
	//	echo  $this->Html->link($this->Html->image('/images/property-1.png'),array('controller' => 'Pages', 'action' => 'index'), array('title' => 'Logo','escape'=>false));
		?>
         </h1>
          </div>
          <div class="col-md-8 col-sm-4 col-xs-4">
              <div class="contact-info-blocks hidden-sm hidden-xs">
                  <div>
                      <i class="fa fa-phone"></i> <?php echo __('Free Line For You'); ?>
                    <span><?php if(isset($websiteSettings['phone'])) echo __($websiteSettings['phone']); ?></span>
                </div>
                  <div>
                      <i class="fa fa-envelope"></i> <?php echo __('Email Us'); ?>
                    <span><?php if(isset($websiteSettings['email_us'])) echo __($websiteSettings['email_us']); ?></span>
                </div>
                  <div>
                      <i class="fa fa-clock-o"></i> <?php echo __('Working Hours'); ?>
                    <span><?php if(isset($websiteSettings['working_hours'])) echo __($websiteSettings['working_hours']); ?></span>
                </div>
             </div>
              <a href="#" class="visible-sm visible-xs menu-toggle"><i class="fa fa-bars"></i></a>
          </div>
        </div>
      </div>
    </div>
    <?php echo $this->element('main-menu'); ?>
  </header>
  <!-- End Site Header --> 
  <!-- Start Content -->
<?php echo $this->Session->flash(); ?>
<?php echo $this->fetch('content'); ?>
  <!-- Start Site Footer -->
  <footer class="site-footer">
      <div class="container">
          <div class="row">
            <div class="col-md-3 col-sm-6 footer-widget widget">
                <h3 class="widgettitle"><?php echo __('Latest News'); ?></h3>
                  <ul>
                      <li>
                          <a href="blog-post.html">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a>
                          <span class="meta-data">1 March, 2014</span>
                      </li>
                      <li>
                      <a href="blog-post.html">Lorem ipsum dolor sit amet elit, consectetur adipiscing.</a>
                          <span class="meta-data">28 February, 2014</span>
                      </li>
                      <li>
                      <a href="blog-post.html">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a>
                          <span class="meta-data">26 February, 2014</span>
                      </li>
                  </ul>
              </div>
            <div class="col-md-3 col-sm-6 footer-widget widget">
                <h3 class="widgettitle"><?php echo __('Useful Links'); ?></h3>
               <ul>
                <li><?php echo $this->Html->link(__('Add your listing'),array('controller'=>'properties','action'=>'add')); ?></li>
                <li><?php echo $this->Html->link(__('Become an agent'),array('controller'=>'users','action'=>'register')); ?></li>
                <li><a href="pricing.html">Pricing</a></li>
                <li><a href="about.html">About us</a></li>
                <li><a href="shortcodes.html">Theme features</a></li>
               </ul>
           </div>
            <div class="col-md-3 col-sm-6 footer-widget widget">
              <h3 class="widgettitle"><?php echo __('Twitter Updates'); ?></h3>
                  <ul class="twitter-widget"></ul>
           </div>
            <div class="col-md-3 col-sm-6 footer-widget widget">
                <h3 class="widgettitle"><?php echo __('Our Newsletter'); ?></h3>
               	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis egestas rhoncus. Donec facilisis fermentum sem, ac viverra ante luctus vel.</p>
               	<form method="post" id="newsletterform" name="newsletterform" class="newsletter-form" action="mail/newsletter.php">
                  	<input type="email" name="nl-email" id="nl-email" placeholder="Enter your email" class="form-control">
                  	<input type="submit" name="nl-submit" id="nl-submit" class="btn btn-primary btn-block btn-lg" value="<?php echo __('Subscribe');?>">
               	</form>
              	<div class="clearfix"></div>
              	<div id="nl-message"></div>
           </div>
       </div>
   </div>
  </footer>
  <footer class="site-footer-bottom">
    <div class="container">
      <div class="row">
        <div class="copyrights-col-left col-md-6 col-sm-6">
          <p><?php if(isset($websiteSettings['rights_reserved'])) echo ($websiteSettings['rights_reserved']); ?></p>
        </div>
        <div class="copyrights-col-right col-md-6 col-sm-6">
          <div class="social-icons">
              <a href="<?php if(isset($websiteSettings['facebook'])) echo $this->Html->fix_url($websiteSettings['facebook']); ?>" target="_blank"><i class="fa fa-facebook"></i></a>
             <a href="<?php if(isset($websiteSettings['twitter'])) echo $this->Html->fix_url($websiteSettings['twitter']); ?>" target="_blank"><i class="fa fa-twitter"></i></a>
             <a href="<?php if(isset($websiteSettings['plus_google'])) echo $this->Html->fix_url($websiteSettings['plus_google']); ?>" target="_blank"><i class="fa fa-google-plus"></i></a>
             <a href="<?php if(isset($websiteSettings['youtube'])) echo $this->Html->fix_url($websiteSettings['youtube']); ?>" target="_blank"><i class="fa fa-youtube"></i></a>
             <!--<a href="#"><i class="fa fa-rss"></i></a>-->
          </div>
        </div>
      </div>
    </div>
  </footer>
  <!-- End Site Footer -->
  <a id="back-to-top"><i class="fa fa-angle-double-up"></i></a>
</div>
  <?php  
  		echo $this->Html->script('property/jquery-2.0.0.min.js');//<!-- Jquery Library Call --> 
  		echo $this->Html->script('property/plugins/prettyphoto/js/prettyphoto.js');//<!-- PrettyPhoto Plugin --> 
  		echo $this->Html->script('property/plugins/owl-carousel/js/owl.carousel.min.js');//<!-- Owl Carousel --> 
  		echo $this->Html->script('property/plugins/flexslider/js/jquery.flexslider.js');//<!-- FlexSlider --> 
  		echo $this->Html->script('property/helper-plugins.js');// <!-- Plugins --
  		echo $this->Html->script('property/bootstrap.js');//<!-- UI -->
  		echo $this->Html->script('property/waypoints.js');// <!-- Waypoints -->
  		echo $this->Html->script('property/init.js');// <!-- All Scripts -->?>
  		<!--[if lte IE 9]><?php echo $this->Html->script('property/script_ie.js');  ?><![endif]-->
	<?php echo $this->element('sql_dump'); ?>

</body>
</html>